'use strict';

const Service = require('egg').Service;

class HomesService extends Service {
  async find() {
    const { ctx } = this;
    const res = ctx.model.Homes.find().limit(Number(10));
    return res;
  }
}
module.exports = HomesService;
